﻿using System;
using System.Collections.Generic;
using System.Text;
using SIRC.Framework.Net;

namespace Sirc.FJSN.Model
{
    /// <summary>
    /// 福建省气象局的信息
    /// </summary>
    public class WetherInfo : IConvert<WetherInfo>
    {
        public bool _isLoad = false;
        /// <summary>
        /// 是否装载数据
        /// </summary>
        public bool IsLoad
        {
            get
            {
                return _isLoad;
            }
        }
        private byte[] _iconDate = new byte[]{};
        /// <summary>
        /// 气象信息图标的字节数组
        /// </summary>
        public byte[] IconDate 
        {
            get
            {
                return _iconDate;
            }     
            set
            {
                _isLoad = true;
                _iconDate = value;
            }
        }
        public string IconBase64
        {
            get
            {
                return 
                    System.Convert.ToBase64String(_iconDate);
            }
        }

        private string _title = string.Empty;
        /// <summary>
        /// 新闻的标题
        /// </summary>
        public string Title 
        {
            get
            {
                return _title;
            }
            set
            {
                _title = value;
            }
        }

        private string _content = string.Empty;
        /// <summary>
        /// 新闻的内容
        /// </summary>
        public string Content
        {
            get
            {
                return _content;
            }
            set
            {
                _content = value;
            }
        }

        #region IConvert<WetherInfo> 成员

        public bool Convert(string customerString)
        {
            return true;
        }

        #endregion
    }
}
